package com.mx.kn.cstf2.actions.crud.transition;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import kn.cstf2.transition.Bean.PersonalBean;

import com.opensymphony.xwork2.ActionSupport;

@Component("insetPersonOptionsTranitionAction")
@Scope(value="session")
public class InsetPersonOptionsTranitionAction extends ActionSupport{

	private String result;
	private PersonalBean record;
	private String value;
	private String insertBf;
	private String insertName;
	private String insertEmail;
	private String insertTelephone;
	
	public String addPerson(){
		
		
//		if(value.equals("0")){
//			
//		}
		record = new PersonalBean();
		record.setBf("1");
		record.setEmail("asdasd");
		record.setId(99999);
		record.setKnkey(1235);
		record.setName("hfs");
		record.setPhone("12312465");
		result = "OK";
		return SUCCESS;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public PersonalBean getRecord() {
		return record;
	}

	public void setRecord(PersonalBean record) {
		this.record = record;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getInsertBf() {
		return insertBf;
	}

	public void setInsertBf(String insertBf) {
		this.insertBf = insertBf;
	}

	public String getInsertName() {
		return insertName;
	}

	public void setInsertName(String insertName) {
		this.insertName = insertName;
	}

	public String getInsertEmail() {
		return insertEmail;
	}

	public void setInsertEmail(String insertEmail) {
		this.insertEmail = insertEmail;
	}

	public String getInsertTelephone() {
		return insertTelephone;
	}

	public void setInsertTelephone(String insertTelephone) {
		this.insertTelephone = insertTelephone;
	}

	
	
	
	
}
